<?php
/*
function conectar () {
   $db_con = mysql_pconnect (DB_SERVER,DB_USER,DB_PASS);
   if (!$db_con) return false;
   if (!mysql_select_db (DB_NAME, $db_con)) return false;
   mysql_query('SET NAMES "utf8"', $db_con);
   return $db_con;
}

function desconectar($db_conexion) {
	mysql_close($db_conexion) ;
}
*/
// constantes de conexion de db
//define( 'DB_SERVER', 'mysql6.000webhost.com' );
define( 'DB_SERVER', 'localhost' );
define( 'DB_NAME', 'zapatos');
define( 'DB_USER', 'a6532846_calzado');
define( 'DB_PASS', 'calzado001');

$db_zapatos = mysql_pconnect(DB_SERVER, DB_USER, DB_PASS) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db(DB_NAME, $db_zapatos);
mysql_query('SET NAMES "utf8"', $db_zapatos);
?>
